# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-nashpy
_pkgorig=nashpy
pkgver=0.0.35
pkgrel=0
pkgdesc="A library for the computation of Nash equilibria in two player games"
url="https://github.com/drvinceknight/Nashpy"
arch="noarch"
license="MIT"
depends="python3 py3-scipy py3-numpy"
checkdepends="python3-dev py3-pytest py3-pytest-flake8 py3-pytest-cov py3-hypothesis"
makedepends="py3-build py3-flit-core py3-installer py3-wheel"
source="https://github.com/drvinceknight/Nashpy/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/Nashpy-$pkgver"

build() {
	python3 -m build --wheel --no-isolation
}

check() {
	python3 -m pytest src/nashpy --cov=nashpy --cov-fail-under=5 --flake8
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/nashpy-$pkgver-py3-none-any.whl
}
sha512sums="
1681509c9a2e18d3a706862825006e4fed0fcc6f1096c01d539dc58c70246021265df035f5e98d36a44a82b43fe8804511dd5c391a87b7c66fecf14af1c66671  nashpy-0.0.35.tar.gz
"
